package com.example.demo.service.impl;

import com.example.demo.domain.dto.AuthUserDTO;
import com.example.demo.entity.AuthUser;
import com.example.demo.mapper.AuthUserMapper;
import com.example.demo.mapper.AuthUserConvert;
import com.example.demo.service.IAuthUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Baomidou
 * @since 2024-11-25
 */
@Service
public class AuthUserServiceImpl extends ServiceImpl<AuthUserMapper, AuthUser> implements IAuthUserService {

    public AuthUserDTO convert(){
        AuthUser entity = new AuthUser();
        entity.setId(1);
        return AuthUserConvert.INSTANCE.toDto(entity);
    }

}
